import 'package:badges/badges.dart';
import 'package:flutter/material.dart';

class NavigationIconView {
  final BottomNavigationBarItem item;

  //title 标题
  final String title;

//icon_path  图标路径
  final String iconPath;

//actived icon path
  final String activeIconPath;

  NavigationIconView(
      {@required this.title,
      @required this.iconPath,
      @required this.activeIconPath})
      : item = BottomNavigationBarItem(
            icon: (

              Image.asset(
                iconPath,
                width: 30,
                height: 30,
              )
            ),
            activeIcon: Image.asset(
              activeIconPath,
              width: 30,
              height: 30,
            ),
            label: title);
}
